<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <f:view beforePhase="#{addBranchManagedBean_1.initView}" >
        <h:head>
            <title>#{bundle['branch.addnewbranch.title']}</title>
        </h:head>

        <h:body>
            <h:form id="addNewBranchForm" prependId="false">
                <p:panel id="branchAddNewBranchPanel" header="#{bundle['branch.addnewbranch.panel']}">
                    <p:messages id="statusMessages" />
                    <p:tabView id="addNewBranchTabView" dynamic="false">
                        <p:tab id="branchContactInformationTab" title="#{bundle['branch.contactinfo.tab']}">
                            <h:panelGrid columns="1" cellpadding="10">
                                <h:outputLabel id="branchContactInfoNote" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.contactinfo.note']}" />
                            </h:panelGrid>  

                            <table>
                                <tr height="50px">
                                    <td width="200px">
                                        <h:outputLabel id="branchNameLabel" style="font-weight: bold" value="#{bundle['branch.name.label']}:" />
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:inputText id="branchNameTextBox" required="true" requiredMessage="#{bundle['branch.name.required']}" value="#{addBranchManagedBean_1.fnbBranch.branchName}" size="25" validator="#{addBranchManagedBean_1.validateBranchName}"/>
                                    </td>
                                    <td>
                                        <p:message for="branchNameTextBox" />
                                    </td>
                                </tr>
                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchStreetNameLabel" style="font-weight: bold" value="#{bundle['branch.streetname.label']}:"/>
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:inputText id="streetNameTextBox" required="true" requiredMessage="#{bundle['branch.streetname.required']}" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.streetName}" size="25"/>                
                                    </td>
                                    <td>
                                        <p:message for="streetNameTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchUnitNumberLabel" style="font-weight: bold" value="#{bundle['branch.unitnumber.label']}:"/>
                                    </td>
                                    <td>
                                        <h:inputText id="branchUnitNumberTextBox" size="10" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.unitNumber}" />
                                        <h:outputLabel style="font-size: small" value="(e:g: #02-45, #02-45/46/47)" />
                                    </td>
                                    <td>
                                        <p:message for="branchUnitNumberTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchBlockNumberLabel" style="font-weight: bold" value="#{bundle['branch.blocknumber.label']}:"/>
                                    </td>     
                                    <td>
                                        <h:inputText id="branchBlockNumberTextBox" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.houseNumber}" size="10"/>                       
                                    </td>
                                    <td>
                                        <p:message for="branchBlockNumberTextBox" />         
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchBuildingNameLabel" style="font-weight: bold" value="#{bundle['branch.buildingname.label']}:"/>
                                    </td>
                                    <td>                            
                                        <h:inputText id="branchBuildingNameTextBox" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.buildingName}"/>       
                                    </td>
                                    <td>
                                        <p:message for="branchBuildingNameTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchPostalCodeLabel" style="font-weight: bold" value="#{bundle['branch.postalcode.label']}:" />
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <p:inputMask id="branchPostalCodeTextBox" required="true" requiredMessage="#{bundle['branch.postalcode.required']}" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.postalCode}" mask="999999" size="6"/>  
                                    </td>
                                    <td>
                                        <p:message for="branchPostalCodeTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchContactNumberLabel" style="font-weight: bold" value="#{bundle['branch.contactnumber.label']}:" /> 
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <p:inputMask id="branchContactNumberTextBox" required="true" requiredMessage="#{bundle['branch.contactnumber.required']}" value="#{addBranchManagedBean_1.fnbBranch.contactNumber}" mask="(999)-99999999"/>  
                                    </td>
                                    <td>
                                        <p:message for="branchContactNumberTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchContactPersonLabel" style="font-weight: bold" value="#{bundle['branch.contactperson.label']}:" />
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:inputText id="branchContactPersonTextBox" required="true" requiredMessage="#{bundle['branch.contactperson.required']}" value="#{addBranchManagedBean_1.fnbBranch.contactPerson}"/>
                                    </td>
                                    <td>
                                        <p:message for="branchContactPersonTextBox" />
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchEmailAddressLabel" style="font-weight: bold" value="#{bundle['branch.emailaddress.label']}:"/>
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:inputText id="branchEmailAddressTextBox" required="true" requiredMessage="#{bundle['branch.emailaddress.required']}" size="25" value="#{addBranchManagedBean_1.fnbBranch.branchAddress.emailAddress}" validator="#{addBranchManagedBean_1.validateEmail}" validatorMessage="Invalid Email" />
                                        <h:outputLabel style="font-size: small" value="(e:g kenneth@hotmail.com)" />
                                    </td>
                                    <td>
                                        <p:message for="branchEmailAddressTextBox"/>
                                    </td>
                                </tr>
                            </table>
                        </p:tab>

                        <p:tab id="branchNatureOfBusinessTab" title="#{bundle['branch.natureofbusiness.tab']}">
                            <table>
                                <tr height="50px" align="left">
                                    <td width="150px">
                                        <h:outputLabel id="branchCuisineTypesLabel" style="font-weight: bold" value="#{bundle['branch.cuisinetypes.label']}:" />
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:selectManyCheckbox id="branchCuisineTypesSelectManyCheckbox"  layout="pageDirection" required="true" requiredMessage="#{bundle['branch.cuisinetypes.required']}" value="#{addBranchManagedBean_1.cuisineTypeList}" converter="cuisineTypeConverter" >
                                            <f:selectItems id="branchCuisineTypesSelectItems" value="#{enumCuisineType.listItems}" />
                                        </h:selectManyCheckbox>
                                    </td>
                                    <td>
                                        <p:message for="branchCuisineTypesSelectManyCheckbox"/>
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchFnbTypeLabel" style="font-weight: bold" value="#{bundle['branch.fnbtype.label']}:" />       
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:selectOneMenu id="branchFnbTypeSelectOneMenu" required="true" requiredMessage="#{bundle['branch.fnbtype.required']}" value="#{addBranchManagedBean_1.fnbBranch.fnBTypeEnum}" >
                                            <f:selectItems id="branchFnbTypeSelectItems" value="#{enumFnbType.listItems}" />
                                        </h:selectOneMenu>
                                    </td>
                                    <td>
                                        <p:message for="branchFnbTypeSelectOneMenu"/>
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchHalalTypeLabel" style="font-weight: bold" value="#{bundle['branch.halaltype.label']}:"/>   
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:selectOneRadio id="branchHalalTypeSelectOneRadio" required="true" requiredMessage="#{bundle['branch.halaltype.required']}" value="#{addBranchManagedBean_1.fnbBranch.isHalal}">
                                            <f:selectItems id="branchHalalTypeSelectItems" value="#{addBranchManagedBean_1.isHalalSelectItems}"/>
                                        </h:selectOneRadio>
                                    </td>
                                    <td>
                                        <p:message for="branchHalalTypeSelectOneRadio"/>
                                    </td>
                                </tr>

                                <tr height="50px">
                                    <td>
                                        <h:outputLabel id="branchPriceRangeLabel" style="font-weight: bold" value="#{bundle['branch.pricerange.label']}:"/>
                                        <h:outputLabel style="font-weight: bold; color: red" value="*" />
                                    </td>
                                    <td>
                                        <h:selectOneMenu id="branchPriceRangeSelectOneMenu" requiredMessage="#{bundle['branch.pricerange.required']}" required="true" value="#{addBranchManagedBean_1.fnbBranch.priceRange}">
                                            <f:selectItems id="branchPriceRangeSelectItems" value="#{addBranchManagedBean_1.priceRangeSelectItems}"/>
                                        </h:selectOneMenu>
                                    </td>
                                    <td>
                                        <p:message for="branchPriceRangeSelectOneMenu" />
                                    </td>
                                </tr>
                            </table>
                        </p:tab>

                        <p:tab id="branchOperatingHoursTab" title="#{bundle['branch.operatinghours.tab']}">
                            <h:panelGrid columns="1" cellpadding="10">
                                <h:outputLabel id="branchOperatingHoursNotes" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.operatinghours.note']}" />
                            </h:panelGrid>

                            <h:panelGrid columns="6" cellpadding="10">
                                <h:outputLabel id="branchMondayStartLabel" style="font-weight: bold" value="#{bundle['branch.mondaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchMondayStartSelectOneMenu" binding="#{mondayStart}" value="#{addBranchManagedBean_1.mondayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchMondayStartSelectItems" value="#{addBranchManagedBean_1.mondayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchMondayStartSelectOneMenu" />

                                <h:outputLabel id="branchMondayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchMondayEndSelectOneMenu" value="#{addBranchManagedBean_1.mondayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchMondayEndSelectItems" value="#{addBranchManagedBean_1.mondayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{mondayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchMondayEndSelectOneMenu" />

                                <h:outputLabel id="branchTuesdayStartLabel" style="font-weight: bold" value="#{bundle['branch.tuesdaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchTuesdayStartSelectOneMenu" binding="#{tuesdayStart}" value="#{addBranchManagedBean_1.tuesdayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchTuesdayStartSelectItems" value="#{addBranchManagedBean_1.tuesdayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchTuesdayStartSelectOneMenu" />   

                                <h:outputLabel id="branchTuesdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchTuesdayEndSelectOneMenu" value="#{addBranchManagedBean_1.tuesdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchTuesdayEndSelectItems" value="#{addBranchManagedBean_1.tuesdayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{tuesdayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchTuesdayEndSelectOneMenu" />

                                <h:outputLabel id="branchWednesdayStartLabel" style="font-weight: bold" value="#{bundle['branch.wednesdaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchWednesdayStartSelectOneMenu" binding="#{wednesdayStart}" value="#{addBranchManagedBean_1.wednesdayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchWednesdayStartSelectItems" value="#{addBranchManagedBean_1.wednesdayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchWednesdayStartSelectOneMenu" /> 

                                <h:outputLabel id="branchWednesdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchWednesdayEndSelectOneMenu" value="#{addBranchManagedBean_1.wednesdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchWednesdayEndSelectItems" value="#{addBranchManagedBean_1.wednesdayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{wednesdayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchWednesdayEndSelectOneMenu" /> 

                                <h:outputLabel id="branchThursdayStartLabel" style="font-weight: bold" value="#{bundle['branch.thursdaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchThursdayStartSelectOneMenu" binding="#{thursdayStart}" value="#{addBranchManagedBean_1.thursdayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchThursdayStartSelectItems" value="#{addBranchManagedBean_1.thursdayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchThursdayStartSelectOneMenu" /> 

                                <h:outputLabel id="branchThursdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchThursdayEndSelectOneMenu" value="#{addBranchManagedBean_1.thursdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchThursdayEndSelectItems" value="#{addBranchManagedBean_1.thursdayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{thursdayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchThursdayEndSelectOneMenu" /> 

                                <h:outputLabel id="branchFridayStartLabel" style="font-weight: bold" value="#{bundle['branch.fridaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchFridayStartSelectOneMenu" binding="#{fridayStart}" value="#{addBranchManagedBean_1.fridayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchFridayStartSelectItems" value="#{addBranchManagedBean_1.fridayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchFridayStartSelectOneMenu" /> 

                                <h:outputLabel id="branchFridayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchFridayEndSelectOneMenu" value="#{addBranchManagedBean_1.fridayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchFridayEndSelectItems" value="#{addBranchManagedBean_1.fridayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{fridayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchFridayEndSelectOneMenu" /> 

                                <h:outputLabel id="branchSaturdayStartLabel" style="font-weight: bold" value="#{bundle['branch.saturdaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchSaturdayStartSelectOneMenu" binding="#{saturdayStart}" value="#{addBranchManagedBean_1.saturdayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchSaturdayStartSelectItems" value="#{addBranchManagedBean_1.saturdayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchSaturdayStartSelectOneMenu" /> 

                                <h:outputLabel id="branchSaturdayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchSaturdayEndSelectOneMenu" value="#{addBranchManagedBean_1.saturdayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchSaturdayEndSelectItems" value="#{addBranchManagedBean_1.saturdayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{saturdayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchSaturdayEndSelectOneMenu" /> 

                                <h:outputLabel id="branchSundayStartLabel" style="font-weight: bold" value="#{bundle['branch.sundaystart.label']}:"/>
                                <h:selectOneMenu required="true" id="branchSundayStartSelectOneMenu" binding="#{sundayStart}" value="#{addBranchManagedBean_1.sundayStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchSundayStartSelectItems" value="#{addBranchManagedBean_1.sundayStartSelectItems}"/>
                                </h:selectOneMenu>
                                <p:message for="branchSundayStartSelectOneMenu" /> 

                                <h:outputLabel id="branchSundayEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu required="true" id="branchSundayEndSelectOneMenu" value="#{addBranchManagedBean_1.sundayEnd}" converter="operatingHoursConverter" validator="#{addBranchManagedBean_1.validateOperatingHours}">
                                    <f:selectItems id="branchSundayEndSelectItems" value="#{addBranchManagedBean_1.sundayEndSelectItems}"/>
                                    <f:attribute name="day" value="#{sundayStart}" />
                                </h:selectOneMenu>
                                <p:message for="branchSundayEndSelectOneMenu" /> 
                            </h:panelGrid>

                            <h:panelGrid columns="2" cellpadding="10">
                                <h:outputLabel id="branchOperatingHoursRemarksLabel" style="font-weight: bold" value="#{bundle['branch.operatinghoursremarks.label']}:"/>
                                <p:inputTextarea id="branchOperatingHoursInputTextArea" style="width:300px;height:100px;" effectDuration="400" value="#{addBranchManagedBean_1.fnbBranch.operatingHoursRemarks}"/>  
                            </h:panelGrid>
                        </p:tab>

                        <p:tab id="branchExtendedOperatingHoursTab" title="#{bundle['branch.extendedoperatinghours.tab']}">

                            <h:panelGrid columns="1" cellpadding="10">
                                <h:outputLabel id="branchExtendedOperatingHoursNote" style="font-weight: bold; font-size: medium; color: red" value="#{bundle['branch.extendedoperatinghours.note']}" />
                            </h:panelGrid>

                            <h:panelGrid columns="8" cellpadding="10">
                                <h:outputLabel id="branchExtendedDateLabel" style="font-weight: bold" value ="#{bundle['branch.extendeddate.label']}: "/>
                                <p:calendar id="branchExtendedCalendarDate" value="#{addBranchManagedBean_1.extendedCalendarDate}" />

                                <h:outputLabel id="branchExtendedTimeStartLabel" style="font-weight: bold" value="#{bundle['branch.extendedtimestart.label']}: "/>
                                <h:selectOneMenu binding="#{extendedTimeStart}" id="branchExtendedTimeStartSelectOneMenu" value="#{addBranchManagedBean_1.extendedTimeStart}" converter="operatingHoursConverter">
                                    <f:selectItems id="branchExtendedTimeStartSelectItems" value="#{addBranchManagedBean_1.extendedTimeStartSelectItems}"/>
                                </h:selectOneMenu>

                                <h:outputLabel id="branchExtendedTimeEndLabel" style="font-weight: bold" value="#{bundle['branch.to.label']}"/>
                                <h:selectOneMenu id="branchExtendedTimeEndSelectOneMenu" value="#{addBranchManagedBean_1.extendedTimeEnd}" converter="operatingHoursConverter" >
                                    <f:selectItems id="branchExtendedTimeEndSelectItems" value="#{addBranchManagedBean_1.extendedTimeEndSelectItems}"/>
                                </h:selectOneMenu>

                                <p:commandButton id="branchAddSpecificDateButton" value="#{bundle['branch.addspecificdate.button']}" process="@this branchExtendedCalendarDate, branchExtendedTimeStartSelectOneMenu, branchExtendedTimeEndSelectOneMenu" update="statusMessages branchExtendedDateDataTable" ajax="true" actionListener="#{addBranchManagedBean_1.addSpecificDateList}"/>
                                <p:message for="branchAddSpecificDateButton"/> 
                            </h:panelGrid>

                            <h:panelGrid columns="1" cellpadding="10" id="branchExtendedDatePanelGrid">
                                <p:dataTable var="branchExtendedDate" value="#{addBranchManagedBean_1.extendedOperatingHoursList}" id="branchExtendedDateDataTable" style="width:350px" >  
                                    <p:column headerText="#{bundle['branch.extendeddate.label']}" >
                                        <h:outputText value="#{branchExtendedDate.specificDate}" >
                                            <f:convertDateTime type="date" pattern="dd-MM-yyyy" timeZone="GMT+8:00" />
                                        </h:outputText>
                                    </p:column>

                                    <p:column headerText="#{bundle['branch.extendedoperatingday.label']}" >
                                        <h:outputText value="#{branchExtendedDate.operatingDay}" />  
                                    </p:column>

                                    <p:column headerText="#{bundle['branch.extendedstarttime.label']}" >
                                        <h:outputText value="#{branchExtendedDate.openingHoursEnum.getLabel()}" />  
                                    </p:column>

                                    <p:column headerText="#{bundle['branch.extendedendtime.label']}" >
                                        <h:outputText value="#{branchExtendedDate.closingHoursEnum.getLabel()}" />  
                                    </p:column>

                                    <p:column>
                                        <p:commandButton id="removeSpecificDateButton" style="width:100px" value="#{bundle['branch.removespecificDate.button']}" update="statusMessages branchExtendedDatePanelGrid" ajax="true" immediate="true" actionListener="#{addBranchManagedBean_1.removeSpecificDateList(branchExtendedDate)}"/>
                                        <p:message for="removeSpecificDateButton"/> 
                                    </p:column>  
                                </p:dataTable>
                            </h:panelGrid>
                        </p:tab>
                    </p:tabView>
                    <p:ajaxStatus style="width:16px;height:16px;">

                        <f:facet name="start">
                            <h:graphicImage value="/images/ajaxloading.gif" />
                        </f:facet>

                        <f:facet name="complete">
                            <h:outputText value="" />
                        </f:facet>

                    </p:ajaxStatus>

                    <p:commandButton id="branchAddNewButton" value="#{bundle['branch.addnew.button']}" update="statusMessages addNewBranchTabView viewAddedBranchTabView" ajax="true" actionListener="#{addBranchManagedBean_1.saveNewBranch}"/>
                    <p:commandButton id="branchResetAllButton" value="#{bundle['branch.resetall.button']}" type="reset"/>
                </p:panel>                               
            </h:form>
        </h:body>
    </f:view>
</html>

